// 充电桩数据类型
export interface ChargingData {
  id: number;
  code: string;
  name: string;
  socketCount: number;
  chargingGroupId?: number;
  chargingGroupName?: string;
  status: number;
}

// 充电桩列表查询参数
export interface ChargingListParams {
  code?: string;
  name?: string;
  chargingGroupId?: number;
  status?: number;
  pageNum?: number;
  pageSize?: number;
}

// 充电桩二维码数据
export interface ChargingQrCodeVo {
  chargingId: number;
  chargingName: string;
  chargingCode: string;
  qrCode: string;
}

// 充电桩及其二维码数据
export interface ChargingWithQrCodesVo {
  chargingId: number;
  chargingName: string;
  chargingCode: string;
  qrCodes: ChargingQrCodeVo[];
}

// 分页结果类型
export interface PageResult<T> {
  records: T[];
  total: number;
  size: number;
  current: number;
}

// API响应类型
export interface Result<T> {
  code: number;
  data: T;
  message: string;
  success?: boolean;
} 